package com.h3c.nem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.h3c.nem.dto.TbApprovalRecordDTO;
import com.h3c.nem.entity.TbApprovalRecord;
import com.h3c.nem.entity.TbFlowInst;

import java.util.List;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: TbApprovalRecordMapper
 *
 * @Author: l22886
 * @Date: 2022-01-19
 * Description: tb_approval_record mapper
 * Version: 1.0
 */
public interface TbApprovalRecordMapper extends BaseMapper<TbApprovalRecord> {

    /**
     * @title: queryListByFuzzy
     * @description: 模糊列表查询
     * @params: [ TbApprovalRecord ]
     * @return: java.util.List
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public List<TbApprovalRecord> queryListByFuzzy(TbApprovalRecord TbApprovalRecord);

    /**
     * @title: queryListByFuzzy
     * @description: 精确列表查询
     * @params: [ TbApprovalRecord ]
     * @return: java.util.List
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public List<TbApprovalRecord> queryList(TbApprovalRecord TbApprovalRecord);

    List<TbApprovalRecordDTO> queryListAndFile(TbFlowInst flowInst);

    public TbApprovalRecord queryExistApproval(TbApprovalRecord tbApprovalRecord);

    public TbApprovalRecord queryApprovalInOrder(String flowId);
    /**
     * @title: updateTbApprovalRecord
     * @description: 更新
     * @params: [ TbApprovalRecord ]
     * @return: java.lang.Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer updateTbApprovalRecord(TbApprovalRecord TbApprovalRecord);

    /**
     * @title: insertTbApprovalRecord
     * @description: 插入
     * @params: [ TbApprovalRecord ]
     * @return: java.lang.Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer insertTbApprovalRecord(TbApprovalRecord TbApprovalRecord);

    /**
     * @title: deleteTbApprovalRecord
     * @description: 删除
     * @params: [ TbApprovalRecord ]
     * @return: java.lang.Integer
     * @createTime: 2022-01-19
     * @version: 1.0
     * @author: l22886
     */
    public Integer deleteTbApprovalRecord(TbApprovalRecord TbApprovalRecord);
}
